using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TipPanel : BasePanel
{
    public Text contentext;
    public Button CloseButton;
    // Start is called before the first frame update
    void Start()
    {
        CloseButton.onClick.AddListener(ClosePanel);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public  void  UpdataTipContent(string tipContent)
    {
        contentext.text = tipContent;
    }
    private void ClosePanel()
    {
        UIManager.Instance.closePanel<TipPanel>();
    }
}
